<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>userList</title>
</head>
<body>
    <h1>userList page</h1>
    <table>
        <tr>
            <th>序号</th>
            <th>用户ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>电话</th>
            <th>邮箱</th>
            <th>性别</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        {volist name="userList" id="vo"}
        <tr>
            <td>{$i}</td>
            <td>{$vo.id}</td>
            <td>{$vo.user_name}</td>
            <td>{$vo.user_pass}</td>
            <td>{$vo.user_phone}</td>
            <td>{$vo.user_email}</td>
            <td>
                {if condition="$vo.user_sex == 0 "}
                    男
                {else /}
                    女
                {/if}
            </td>
            <td>{$vo.create_time}</td>
            <td>
                <a href="{:url('userEdit',array('id'=>$vo.id))}">修改</a>
                <a onclick="return confirm('确认删除？')" href="{:url('delete',array('id'=>$vo.id))}">删除</a>
            </td>
        </tr>
        {/volist}
    </table>
</body>
</html>